﻿using System.ComponentModel;
using GalaSoft.MvvmLight;

namespace GSSoftSL.Models
{
    public class CheckBoxContext : ViewModelBase
    {
        //public event PropertyChangedEventHandler PropertyChanged;

        private object _key;
        public object Key
        {
            get { return _key; }
            set
            {
                _key = value;
                RaisePropertyChanged("Key");
                //PropertyChanged(null, new PropertyChangedEventArgs("Key"));
            }
        }

        private string _text;
        public string Text
        {
            get { return _text; }
            set
            {
                _text = value;
                RaisePropertyChanged("Text");
                //PropertyChanged(null, new PropertyChangedEventArgs("Text"));
            }
        }

        private bool _isChecked;
        public bool IsChecked
        {
            get { return _isChecked; }
            set
            {
                _isChecked = value;
                RaisePropertyChanged("IsChecked");
                //PropertyChanged(null, new PropertyChangedEventArgs("IsChecked"));
            }
        }
    }
}
